//
//  PhotoCollectionViewCell.m
//  XPhoto
//
//  Created by sentinel on 2020/3/25.
//  Copyright © 2020 baboy. All rights reserved.
//

#import "PhotoCollectionViewCell.h"
#import <BKKit/UIButton+x.h>

@implementation PhotoCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (void)setPost:(Post *)post{
    _post = post;
    PostItem *postItem = post.items.firstObject;
    if (!postItem) {
        return;
    }
    [self.photoScrollView setPhotos:@[postItem]];
}
@end
